<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
import publicBox from "../wxPublic/index";
import miniappBox from "../miniapp/index";
import collectPayBox from "../collectPay/index";
export default {
  mixins: [Vue.prototype.$vFN.Mixins.Base],
  components: { publicBox, miniappBox, collectPayBox },
  data() {
    return {
      activeName: "",
    };
  },
  methods: {
    // 加参数
    tabClick() {
      if (this.$route.query.type == this.activeName) {
        return;
      }

      this.$router.push(
        this.$vFN.Tools.toUrl({
          path: "./payment",
          query: {
            type: this.activeName,
          },
        })
      );
    },

    init() {
      if (this.$route.query.type) {
        this.activeName = this.$route.query.type;
      } else {
        this.activeName = "default";
      }
    },
  },
  mounted() {
    this.init();
    this.$nextTick(function () {});
  },
  activated() {},
};
</script>
